package com.techfengs.test08;

public class Person {
	// 父类公共的属性
	private int age;
	private String name;
	private double height;
	// 父类公共的方法
	public void setAge(int age) {
		this.age = age;
	}

	public int getAge() {
		return age;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	public double getHeight() {
		return height;
	}

	// 吃饭
	public void eat() {
		System.out.println("人类可以吃饭");
	}

	// 睡觉
	public void sleep() {
		System.out.println("人类可以睡觉");
	}

	// 喊叫
	public void shout() {
		System.out.println("人类可以喊叫");
	}
}
